home *** CD-ROM | disk | FTP | other *** search
- global cursorGod, LabelGod, layerList, ScrollBar, infoBox
-
- on startMovie
- set the alertHook to new(script "theAlertHook")
- set thestagewidth to the stageRight - the stageLeft
- set thestageheight to the stageBottom - the stageTop
- set sendThis to "window size: [" & thestagewidth & "], [" & thestageheight & "]"
- sendoff(sendThis)
- set layerList to []
- set layerNames to value(the text of member "layerNames")
- repeat with i in layerNames
- set defText to the text of member (i && "Definition")
- set layerDef to [:]
- do("set layerDef to " & defText)
- add(layerList, new(script "Class Layer", layerDef))
- end repeat
- set labelSprite to 36
- set LabelGod to new(script "Class LabelGod", labelSprite)
- set bgSprite to 5
- set upSprite to 6
- set downSprite to 7
- set grabberSprite to 8
- set scrolledSprite to 2
- set scrolledLineHeight to 13
- set ScrollBar to new(script "Class ScrollBar", "light", bgSprite, upSprite, downSprite, grabberSprite, scrolledSprite, scrolledLineHeight)
- set cursorGod to new(script "Class CursorGod")
- subscribe(ScrollBar, cursorGod)
- set infoBox to new(script "Class InfoBox", ScrollBar)
- repeat with i in layerList
- linkUp(i, LabelGod, infoBox)
- subscribe(i, cursorGod)
- end repeat
- end
-
- on idle
- mouseCheck(cursorGod)
- end
-
- on EvalScript xString
- nothing()
- end
-